<template>
  <el-carousel :height="height">
    <el-carousel-item v-for="carousel in list" :key="carousel.id">
      <img :src="carousel.imgUrl" />
    </el-carousel-item>
  </el-carousel>
</template>

<script>
export default {
  name: "Carousel",
  props: ["list", "height"],
};
</script>
<style lang="scss" scoped></style>
